name_list = ['张三','李四','王五']
# print(name_list[0])
# print(name_list.index("王五"))

data_list = ['python', 'java', 'python', 'php']
num = data_list.count("python")
# print(num)

val_list = ["Web自动化", "UI自动化", "接口自动化"]
val_list.append("APP自动化")
# print(val_list)
val_list.append(11)
# print(val_list)

# 列表中的元素还是列表：列表嵌套
student_list = [["张三", "18", "功能测试"], ["李四", "20", "自动化测试"], ["王五", "22",
["python", "java"]]]
# 获取指定的元素
# 查找元素18，如何查找？
# print(student_list[0])
aa = student_list[0] # ['张三', '18', '功能测试']
# print(aa[1]) # 18
# 合并起来
# print(student_list[0][1]) # 18
# 查找李四
# print(student_list[1][0]) # 李四
# 查找java
# print(student_list[2][2][1]) # java

num = [1,1,23,3,4,7,1,1]
while 1 in num:
    num.remove(1)
print(num)
